<%@ page import="com.pixiv.Entity.User" %>
<%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2021/11/10
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>设置用户资料</title>

    <link rel = "stylesheet" href = "${pageContext.request.contextPath}/common/layui/css/layui.css">
    <link rel = "stylesheet" href = "${pageContext.request.contextPath}/pixiv/css/header.css">
    <link rel = "stylesheet" href = "${pageContext.request.contextPath}/pixiv/css/seticon.css">
    <script src = "${pageContext.request.contextPath}/common/jquery3.6.0.js"></script>
    <script src = "${pageContext.request.contextPath}/common/layui/layui.js"></script>
</head>
<body>
<%
    User u = (User) session.getAttribute("GLOBAL_USER_OBJECT");
%>

<script type = "text/javascript">

    layui.use('element',function(){
        var element = layui.element;
    });
</script>

<div id = "head_test_0">
    <div class="layui-main layui-container">
        <div class="layui-col-md4">
            <!--<img style = "float:left;border:1px solid black;" src = "" width = "39px" height = "39px">-->
            <i id = "pointToLeft" class="layui-icon">&#xe857;</i>
            <img id = "gotoPosition" src = "${pageContext.request.contextPath}/pixiv/img/pixiv.png"
                 width = "120px";height = "65px"  >
            <script type = "text/javascript">
                document.querySelector("#gotoPosition").onclick = function(){
                    location.href = "${pageContext.request.contextPath}/position/gotoPosition";
                }
            </script>

            <div style = "line-height:49px;float:left;"></div>

        </div>
        <div class="layui-col-md3">

        </div>
        <div class="layui-col-md5">

            <ul class="layui-nav" style = "background-color:ghostwhite;flex-wrap:wrap;">
                <li style = "position:relative;left:10px;top:0px;">
                    <input type = "button" value = "投稿" id = "upPictureToTarget"><!--按钮-->
                </li>
                <li class="layui-nav-item" style = "position:relative;left:165px;top:-47px;">
                    <img src="${pageContext.request.contextPath}/user/getUserIcon" id = "UserIconDisplay" class="layui-nav-img">
                    <dl class="layui-nav-child" style = "width:150px;margin-left:-40px;margin-top:-16px;">

                        <img src = "${pageContext.request.contextPath}/user/getUserIcon"
                             style = "width:75px;height:75px;border-radius:35px;border:0px;">
                        <dd style = "color:rgba(20,20,20,0.7);">账号id:<%out.write(String.valueOf(u.getUserID()));%></dd>
                        <dd style = "color:rgba(20,20,20,0.7);">用户姓名:<%out.write(u.getName() );%></dd>
                        <dd style = "color:rgba(20,20,20,0.7);">e-mail:<%out.write(u.getEMail() );%></dd>
                        <dd style = "color:rgba(20,20,20,0.7);"><a href="${pageContext.request.contextPath}/position/gotoSetUser">设置</a></dd>
                        <dd style = "color:rgba(20,20,20,0.7);"><a href="${pageContext.request.contextPath}/position/gotoMyTitle">查看我的图库</a></dd>
                        <dd style = "color:rgba(20,20,20,0.7);"><a href="${pageContext.request.contextPath}/Login/gotoLogin">退出登录</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
</div>

<div id = "context_1">
    <div id = "content_1_back_div" class="layui-main layui-container">
        <h2 style = "text-align:left;">修改信息设置</h2>
        <ul>
            <li><a href = "${pageContext.request.contextPath}/position/gotoSetUser" >基本信息</a></li>
            <li style = "border:1px solid rgba(161,161,161,0.9);border-bottom:0px;"><a style = "color:cornflowerblue;" href = "${pageContext.request.contextPath}/position/gotoSetInfo">个人资料设置</a></li>
        </ul>
        <ul>
            <li><a href = "${pageContext.request.contextPath}/position/gotoSetInfo" style = "color:cornflowerblue;size:15px;">个人信息修改</a></li>
            <li><a href = "${pageContext.request.contextPath}/position/gotoSetIcon" style = "color:cornflowerblue;size:15px;">头像修改</a></li>
            <li><a href = "" style = "color:black;size:15px;">封面修改</a></li>
        </ul>

        <div id = "basicInformation" class = "layui-container">

        </div>



    </div>
</div>


<script type = "text/javascript">




</script>


</body>
</html>
